{#if data.collections && data.collections.length > 0} {#each data.collections as collection (collection.name)} {/each} {:else} {/if}
Name Documents Indexes Size
{collection.name} {#await collection.details} ... {:then details} {#if details} {formatNumber(details.count)} {:else} {/if} {/await} {#await collection.details} ... {:then details} {#if details} ({ definition: index.key ? JSON.stringify(index.key, null, 1) : index.name, size: formatBytes(index.size), }))} > {formatNumber(details.nIndexes)} {:else} {/if} {/await} {#await collection.details} ... {:then details} {#if details} ({ ...row, value: typeof row.value === "number" ? formatBytes(row.value) : row.value, }))} > {formatBytes(details.size)} {:else} {/if} {/await}
{#if !data.readOnly} {/if}
No collections...

Are you sure you want to drop the collection {collectionToDrop?.name}? This action cannot be undone.

{#snippet footer()} {/snippet}